package com.nvwa.coding.function;

import com.nvwa.coding.util.safe.Coding;


@FunctionalInterface
public interface RunnableEX<EX extends Throwable> {

    void run() throws EX;

    default Runnable toSilentRunnable() {
        return () -> Coding.silentExecute(this);
    }

    default Runnable toLoggingRunnable() {
        return () -> Coding.loggingExecute(this);
    }
}
